﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using System.Xml.Serialization;
using Microsoft.Office.Interop.Excel;

namespace ObjectModel.Excel
{
    /// <summary>
    /// Extends OfflineRange to include a collection of conditions
    /// that can be placed on the value resolution process.
    /// </summary>
    public class ConditionsCollection : ObservableCollection<ValueCondition>
    {
        public void ApplyAll()
        {
            foreach (ValueCondition condition in this)
                condition.Resolve();
        }
    }
}
